package br.com.iswe.gwt.ui.client;

import com.google.gwt.user.client.rpc.AsyncCallback;

public abstract class FilterCallback<T> implements AsyncCallback<T> {

	private AsyncCallback<T> delegate;
	
	public FilterCallback(){
		
	}
	
	public void onFailure(Throwable caught) {
		delegate.onFailure(caught);
	}

	public void onSuccess(T result) {
		delegate.onSuccess(result);
	}

	public AsyncCallback<T> getDelegate() {
		return delegate;
	}
	public void setDelegate(AsyncCallback<T> delegate) {
		this.delegate = delegate;
	}
}
